﻿
@model RTW.OA.Models.official_document
@{

    Layout = "~/Views/Shared/_LayoutBase.cshtml";
}

@section styles{

}
<div id="dMain">
    <div class="wrapper wrapper-content animated fadeInRight">
        <div class="ibox" style="margin-bottom: 0px;">
            <div class="ibox-title">
                <h4>取文号</h4>
            </div>
            <div class="ibox-content">
                @using (Html.BeginForm("SetDocNumber", "Send", FormMethod.Post, new { area = "Document", id = "form", name = "form" }))
                {
                    @Html.AntiForgeryToken()

                <div class="from-content">
                    <dl>
                        <dt>文号</dt>
                        <dd>
                            @Html.EditorFor(m => m.DOC_NUM, new { htmlAttributes = new { @class = "input normal form-control" } })&nbsp;<a class="btn btn-info btn-xs btn-outline">生成文号</a>
                        </dd>
                    </dl>
                    <dl>
                        <dt><span style="color:red;">年度</span></dt>
                        <dd>
                            <div class="rule-single-select">
                                @Html.DropDownList("DOC_YEAR", ViewBag.DOC_YEAR_LIST as IEnumerable<SelectListItem>, new { @class = "form-control" })
                            </div>
                        </dd>
                    </dl>
                    <dl>
                        <dt><span style="color:red;">类别</span></dt>
                        <dd>
                            <div class="rule-single-select">
                                @Html.DropDownList("CATEGORY", ViewBag.CATEGORY_LIST as IEnumerable<SelectListItem>, new { @class = "form-control" })
                            </div>
                        </dd>
                    </dl>
                    <dl>
                        <dt><span style="color:red;">密级</span></dt>
                        <dd>
                            <div class="rule-single-select">
                                @Html.DropDownList("SECRET_LEVEL", ViewBag.SECRET_LEVEL_LIST as IEnumerable<SelectListItem>, new { @class = "form-control" })
                            </div>
                        </dd>
                    </dl>
                    <dl>
                        <dt><span style="color:red;">部门领导</span></dt>
                        <dd>
                            @Html.EditorFor(m => m.DEPT_LEADER, new { htmlAttributes = new { @class = "input normal form-control" } })
                        </dd>
                    </dl>
                    <dl>
                        <dt><span style="color:red;">办公室领导</span></dt>
                        <dd>
                            @Html.EditorFor(m => m.OFFICE_LEADER, new { htmlAttributes = new { @class = "input normal form-control" } })
                        </dd>
                    </dl>
                    <dl>
                        <dt><span style="color:red;">签发人</span></dt>
                        <dd>
                            @Html.EditorFor(m => m.SIGNER, new { htmlAttributes = new { @class = "input normal form-control" } })
                        </dd>
                    </dl>
                    <dl>
                        <dt><span style="color:red;">签发时间</span></dt>
                        <dd>
                            @Html.EditorFor(m => m.SIGNATURE_TIME, new { htmlAttributes = new { @Class = "input rule-date-input form-control", onfocus = "WdatePicker({ dateFmt: 'yyyy-MM-dd HH:mm:ss'})" } })
                        </dd>
                    </dl>
                    <dl>
                        <dt><span style="color:red;">发文页数</span></dt>
                        <dd>
                            @Html.TextBoxFor(m => m.DOC_PAGE_COUNT, new { @class = "input normal form-control" })
                        </dd>
                    </dl>
                    <dl>
                        <dt><span style="color:red;">缓急</span></dt>
                        <dd>
                            <div class="rule-single-select">
                                @Html.DropDownList("URGENT_LEVEL", ViewBag.URGENT_LEVEL_LIST as IEnumerable<SelectListItem>, new { @class = "form-control" })
                            </div>
                        </dd>
                    </dl>
                    <dl>
                        <dt><span style="color:red;">承办部门</span></dt>
                        <dd>
                            @Html.EditorFor(m => m.UNDERTAKE_UNIT, new { htmlAttributes = new { @class = "input normal form-control" } })
                        </dd>
                    </dl>
                    <dl>
                        <dt><span style="color:red;">承办人</span></dt>
                        <dd>
                            @Html.EditorFor(m => m.UNDERTAKER, new { htmlAttributes = new { @class = "input normal form-control" } })
                        </dd>
                    </dl>
                    <dl>
                        <dt>保密年限</dt>
                        <dd>
                            @Html.EditorFor(m => m.SECRECY_YEARS, new { htmlAttributes = new { @class = "input normal form-control" } })
                        </dd>
                    </dl>
                    <dl>
                        <dt>设起始号</dt>
                        <dd>
                            @Html.EditorFor(m => m.START_NUM, new { htmlAttributes = new { @class = "input normal form-control" } })
                        </dd>
                    </dl>
                    <hr />
                    <dl>
                        <dt>公文标题</dt>
                        <dd>
                            @Html.EditorFor(m => m.SUBJECT, new { htmlAttributes = new { @class = "input normal form-control", @readonly = "readonly" } })
                        </dd>
                    </dl>
                    <dl>
                        <dt>拟稿单位</dt>
                        <dd>
                            @Html.EditorFor(m => m.DRAFT_UNIT, new { htmlAttributes = new { @class = "input normal form-control", @readonly = "readonly" } })
                        </dd>
                    </dl>
                    <dl>
                        <dt>拟稿人</dt>
                        <dd>
                            @Html.EditorFor(m => m.DRAFT_AUTHOR, new { htmlAttributes = new { @class = "input normal form-control", @readonly = "readonly" } })
                        </dd>
                    </dl>
                    <dl>
                        <dt>备注</dt>
                        <dd>
                            @Html.TextAreaFor(m => m.REMARK, new { @class = "input normal form-control", @readonly = "readonly" })
                        </dd>
                    </dl>
                    @*<dl>
            <dt>主送<br /><span style="font-size:10px;color:red;font-weight:normal;">用于套红头</span></dt>
            <dd>
                @Html.TextAreaFor(m => m.RED_HEAD_RECEIVE_UNITS, new { @class = "input normal form-control" })
            </dd>
        </dl>
        <dl>
            <dt>抄送<br /><span style="font-size:10px;color:red;font-weight:normal;">用于套红头</span></dt>
            <dd>
                @Html.TextAreaFor(m => m.RED_HEAD_CC, new { @class = "input normal form-control" })
            </dd>
        </dl>*@
                    @Html.HiddenFor(m => m.DOC_ID)
                    @Html.HiddenFor(m => m.DOC_CATEGORY)
                    @Html.HiddenFor(m => m.DEPT_LEADER_USER_NO)
                    @Html.HiddenFor(m => m.TEMPLATE)
                    @Html.HiddenFor(m => m.BODY)
                    @Html.HiddenFor(m => m.SENDER)
                    @Html.HiddenFor(m => m.DRAFT_USER_NO)
                    @Html.HiddenFor(m => m.RECEIVE_UNITS)
                    @Html.HiddenFor(m => m.RECEIVE_UNITS_TEXT)
                    @Html.HiddenFor(m => m.RECEIVERS)
                    @Html.HiddenFor(m => m.RECEIVERS_TEXT)
                    @Html.HiddenFor(m => m.RED_HEAD_RECEIVE_UNITS)
                    @Html.HiddenFor(m => m.RED_HEAD_CC)
                    @Html.HiddenFor(m => m.CREATE_TIME)
                    @*@Html.Hidden("CREATE_TIME", Model.CREATE_TIME.ToString("yyyy-MM-dd HH:mm:ss"))*@
                </div>
                    <div class="from-footer">
                        <div class="btn-wrap" style="position: fixed;">
                            <a class="btn btn-sm btn-primary radius" onclick="savefrom()">
                                <i class="iconfont icon-save"></i>
                                提交保存
                            </a>
                            <a class="btn btn-sm btn-warning radius" onclick="parent.subcloseTab('1304');">
                                <i class="iconfont icon-fanhui"></i>
                                取消关闭
                            </a>
                        </div>
                    </div>
                }
            </div>
        </div>
    </div>
</div>
@section scripts{
    <script src="@Url.Content("~/Content/JS/common/WdatePicker/WdatePicker.js")"></script>
    <script type="text/javascript" charset="utf-8" src="@Url.Content("~/Content/JS/common/jquery/Validform_v5.3.2_min.js")"></script>
    <script type="text/javascript" charset="utf-8" src="@Url.Content("~/Content/JS/common/artdialog/dialog-plus-min.js")"></script>
    <script type="text/javascript" charset="utf-8" src="@Url.Content("~/Content/JS/common/webuploader/webuploader.min.js")"></script>
    <script type="text/javascript" charset="utf-8" src="@Url.Content("~/Content/editor/ueditor.config.js")"></script>
    <script type="text/javascript" charset="utf-8" src="@Url.Content("~/Content/editor/ueditor.all.min.js")"></script>
    <script type="text/javascript" charset="utf-8" src="@Url.Content("~/Content/editor/lang/zh-cn/zh-cn.js")"></script>

    <script type="text/javascript" charset="utf-8" src="@Url.Content("~/Content/JS/common/uploader.js")"></script>
    @*<script type="text/javascript" charset="utf-8" src="../js/uploader.js"></script>*@

    <script src="@Url.Content("~/Content/JS/common/from.js")"></script>
    <script>
        $(function () {
            //初始化表单验证
            $("#form").initValidform();
        });

        function savefrom() {
            $("#form").submit();
        }
        
    </script>

}